﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public enum ENUM_Professional : byte
{
    GongJianShou,
    FaShi,
    QiShi
}

namespace Day0320_练习_Game
{
    class Hero
    {
        public int HP { get; set; }
        public int MP { get; set; }
        public ENUM_Professional Professional { get; set; }
        public Weapon HeroWeapon { get; set; }

        public Hero(int hp, int mp, ENUM_Professional pro, Weapon weapon)
        {
            HP = hp;
            MP = mp;
            Professional = pro;
            HeroWeapon = weapon;
        }

        public void Hero_Attack(Boss boss)
        {
            boss.HP -= 10;
            Console.WriteLine("当前boss的HP = " + boss.HP);
            Console.WriteLine("英雄攻击");
            HeroWeapon.Attack();
        }

        public void Hero_FangYu()
        {
            Console.WriteLine("英雄防御");
        }
    }
}
